package com.hz.house.enums;

/**
 * 问答类型的枚举
 * @author lfw
 */
public enum FQATypeEnums {
	
	XIAN_GOU(1,"限购",1),
	LUO_HU(2,"落户",1),
	SHE_BAO(3,"社保",1),
	FANG_JIA(4,"房价",2),
	GUN_HUA(5,"规划",2),
	LOU_PAN(6,"楼盘",2),
	DAI_KUAN(7,"贷款",3),
	GONGJI_JIN(8,"公积金",3),
	JIAO_YI(9,"交易",3),
	OTHERS(10,"其他",4);
	
	
	private int id;
	
	private String typeName;
	
	private int tag;

	
	FQATypeEnums(int id,String typeName,int tag){
		this.id=id;
		this.typeName=typeName;
		this.tag=tag;
	}


	public int getId() {
		return id;
	}


	public String getTypeName() {
		return typeName;
	}

	
	public int getTag() {
		return tag;
	}


	public static String getTypeNameById(int id) {
		FQATypeEnums[] all =FQATypeEnums.values();
		for(FQATypeEnums f:all) {
			if(f.getId()==id)
				return f.getTypeName();
		}
		return "";
	}
}
